<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>FBLA Connection - {% block title %}{% endblock %}</title>
	<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/main.css"/>
	<script type="text/javascript" src="{{ MEDIA_URL }}js/autopopulate.js"></script>
	{% block extra_head %}{% endblock %}
	
</head>

<body>
	<div id="menubar">
		<div id="fc_logo">
			<a href="http://fblaconnection.com/"><img src="{{ MEDIA_URL }}images/fc_logo.png" alt="FBLA Connection" /></a>
		</div>
		{% if request.user.is_authenticated %}
		<div id="login_controls">
			Welcome {{ request.user.first_name }}, click <a href="http://fblaconnection.com/panel/{{request.user.username}}/profile/">here</a> to view your profile. <a href="http://fblaconnection.com/login/out/">Logout</a>
		</div>
		{% else %}
		<div id="login_controls">
			<form action="http://fblaconnection.com/login/in/" method="post" id="login" accept-charset="utf-8">
	
				<table width="28" border="0">
				  <tr height="10" style="height: 10px;">
				    <td><input type="text" name="username" class="login_text populate" title="Username" value="" /></td>
					<td><div style="width: 4px"></div></td>
				    <td><input type="password" name="password" class="login_text" title="Password" value="" /></td>
				    <td>
					<input type="submit" class="login_button" value="Login">
					</td>
				  </tr>
				</table>
			</form>
		</div>
		{% endif %}
	</div>
	<div id="content_sep"></div>
	<div id="content_container">
		{% block main_content %}{% endblock %}
	</div>
	<div id="footer_container">
		<div id="footer_left">
			FBLA Logo is COPYRIGHT© 2009 <a href="http://www.fbla-pbl.org/web/page/867/sectionid/587/pagelevel/3/parentid/697/fbla.asp">FBLA-PBL</a><br />
			FBLA CONNECTION© 2009
		</div>
		<div id="footer_right">
			{% if request.user.is_authenticated %}
				<a href="http://fblaconnection.com/login/out/">Logout</a> | 
			{% else %}
				<a href="http://fblaconnection.com/login/">Login</a> | <a href="http://fblaconnection.com/register/">Register</a> | 
			{% endif %}
			<a href="http://fblaconnection.com/panel/search/">Search People</a> | <a href="http://fblaconnection.com/about/">About</a> 
		</div>
	</div>
</body>
</html>
